package com.demo.springboot.dao;

import com.demo.springboot.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * @ClassName UserDao
 * @Description TODO
 * @Author tianqinglong
 * @Date 19:32 2022/7/14
 * @Version 1.0
 **/
@Repository
public class UserDao {
    private static ArrayList<User> list=null;
    static {
        list = new ArrayList<>();
        list.add(new User("123","123","10086",20));
        list.add(new User("194031529","123","10010",20));
    }

    public ArrayList<User> getList(){
        return list;
    }
}
